package demo;

//Day07
public class Day06003 {
    public static void main(String[] args) {
        int[] arr1 = {1, 2, 3, 4, 5};
        int[] arr2 = {1, 2, 3, 4, 6};
        System.out.println(compare(arr1, arr2));
    }

    private static boolean compare(int[] arr1, int[] arr2) {
        if (arr1.length != arr2.length)
            return false;
        else {
            for (int i = 0; i < arr1.length; i++) {
                if(arr1[i]!=arr2[i])
                    return false;
            }
            return true;
        }

    }

}
